# @Version : 1.0
# @Author  : 刘宇
# @File    : 12_tuple_while.py
# @Time    : 2025/10/13 09:57

# while 遍历元组

tuple_color = ('red', 'green', 'blue', 'yellow', 'white', 'black')

index = 0

while index < len(tuple_color):
    print(f"第{index+1}个元素的值是：{tuple_color[index]}")
    index += 1
